package day1220;

public class Test4 {
    public static void main(String[] args) {
        int rs=eatPeach(9);//3.
        System.out.println(rs);
    }

     //            2.
    private static int eatPeach(int peachCount) {
        int peach=1;
        for(int i=1;  i<=  peachCount -1  ; i++){
            peach=  (peach+1) *2;
        }
        return peach;//1.
    }
}
